import request from "@/utils/request";


// 查询全部商品类型
export function getAppPackageTypeList() {
  return request({
    url: "/app/getAppPackageTypeList",
    method: "get",
  });
}

// 新增商品
export function addAppPackage(data) {
  return request({
    url: "/app/addAppPackage",
    method: "post",
    data,
  });
}

// 获取全部的商品套餐
export function getAppPackageList(query) {
  return request({
    url: "/app/getAppPackageList",
    method: "get",
    params: query
  });
}

// 修改商品
export function updateAppPackage(data) {
  return request({
    url: "/app/updateAppPackage",
    method: "post",
    data,
  });
}